import Vue from 'vue'
import Router from 'vue-router'
import TopicList from '@/views/TopicList'
import Topic from '@/views/Topic'

Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/',
      name: 'home',
      component: TopicList
    },
    {
      path: '/:tab',
      name: 'TopicList',
      component: TopicList
    },
    {
      path: '/topic/:id.html',
      name: 'topic',
      component: Topic
    }
  ]
})
